<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Exil:  Fichier source de src/TabTerrains.h</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Exil
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Variables&#160;globale</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">src/TabTerrains.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_tab_terrains_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00012"></a>00012 <span class="preprocessor">#ifndef TABTERRAINS_H</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#define TABTERRAINS_H</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="_terrain_8h.html" title="Définit la structure des Terrains.">Terrain.h</a>&quot;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00016"></a>00016 
<a name="l00024"></a><a class="code" href="struct_tab_terrains.html">00024</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00025"></a>00025 {
<a name="l00026"></a><a class="code" href="struct_tab_terrains.html#a45586c31e6fc92a85a8879c899e1f746">00026</a>    <a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> *<a class="code" href="struct_tab_terrains.html#a45586c31e6fc92a85a8879c899e1f746">tabTerr</a>;    
<a name="l00027"></a><a class="code" href="struct_tab_terrains.html#a9a62b2a3bf5214c8f7757f48462d4c3f">00027</a>    <span class="keywordtype">int</span> <a class="code" href="struct_tab_terrains.html#a9a62b2a3bf5214c8f7757f48462d4c3f">nbCases</a>;         
<a name="l00028"></a>00028 } <a class="code" href="struct_tab_terrains.html" title="Informations concernant le tableau de terrains.">TabTerrains</a>;
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="comment">/*============== Gestion de la mémoire / Création du tableau ==============*/</span>
<a name="l00041"></a>00041 <span class="keywordtype">void</span> <a class="code" href="_tab_terrains_8c.html#a5641085ddc5616d4bc84ad7a489fd204" title="Initialise un tableau de Terrains.">initTabTerrains</a>(<a class="code" href="struct_tab_terrains.html" title="Informations concernant le tableau de terrains.">TabTerrains</a> *ptabTerrains, FILE *f);
<a name="l00042"></a>00042 
<a name="l00054"></a>00054 <a class="code" href="struct_tab_terrains.html" title="Informations concernant le tableau de terrains.">TabTerrains</a> <a class="code" href="_tab_terrains_8c.html#a5774f1c3d0c83c8b4a070971a97b547d" title="Crée un tableau de Terrains initialisé et rempli.">creerTabTerrains</a>(<span class="keywordtype">char</span> *fichierData);
<a name="l00055"></a>00055 
<a name="l00056"></a>00056 
<a name="l00063"></a>00063 <span class="keywordtype">void</span> <a class="code" href="_tab_terrains_8c.html#af2243d820de369eac8c4a8313999af62" title="Détruit un tableau de Terrains.">detruireTabTerrains</a>(<a class="code" href="struct_tab_terrains.html" title="Informations concernant le tableau de terrains.">TabTerrains</a> *ptabTerrains);
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 <span class="comment">/*============================= Accesseurs =============================*/</span>
<a name="l00071"></a>00071 <span class="keywordtype">int</span> <a class="code" href="_tab_terrains_8c.html#ae9865e8201fdc32b73a577022cc73536" title="Retourne le nombre de Cases du tableau de Terrains.">getNbCasesTabTerrains</a>(<span class="keyword">const</span> <a class="code" href="struct_tab_terrains.html" title="Informations concernant le tableau de terrains.">TabTerrains</a> *ptabTerrains);
<a name="l00072"></a>00072 
<a name="l00079"></a>00079 <a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> *<a class="code" href="_tab_terrains_8c.html#ad16ef36377cc00f588ec57d62683ad5f" title="Retourne le nombre de Cases du tableau de Terrains.">getTerrainTabTerrains</a>(<span class="keyword">const</span> <a class="code" href="struct_tab_terrains.html" title="Informations concernant le tableau de terrains.">TabTerrains</a> *ptabTerrains, <span class="keywordtype">int</span> indiceCase);
<a name="l00080"></a>00080 
<a name="l00081"></a>00081 <span class="comment">/*============================= Mutateurs =============================*/</span>
<a name="l00087"></a>00087 <span class="keywordtype">void</span> <a class="code" href="_tab_terrains_8c.html#add271d6d118b646efae6a18c4b3ddf75" title="Retourne le nombre de Cases du tableau de Terrains.">setNbCasesTabTerrains</a>(<a class="code" href="struct_tab_terrains.html" title="Informations concernant le tableau de terrains.">TabTerrains</a> *ptabTerrains, <span class="keywordtype">int</span> nouvNbCases);
<a name="l00088"></a>00088 
<a name="l00089"></a>00089 <span class="comment">/*=============================== Autres ===============================*/</span>
<a name="l00099"></a>00099 <a class="code" href="struct_terrain.html" title="Informations définissant un type de terrain donné.">Terrain</a> *<a class="code" href="_tab_terrains_8c.html#a9c03aef33f70d279243052eef5d1cc3a" title="Recherche un Terrain dans un tableau de Terrains.">rechercheTabTerrains</a>(<span class="keyword">const</span> <a class="code" href="struct_tab_terrains.html" title="Informations concernant le tableau de terrains.">TabTerrains</a> *ptabTerrains, <span class="keyword">const</span> <span class="keywordtype">char</span> *nomTerr);
<a name="l00100"></a>00100 
<a name="l00101"></a>00101 <span class="comment">/*=========================== Fonctions de Test ===========================*/</span>
<a name="l00105"></a>00105 <span class="keywordtype">void</span> <a class="code" href="_tab_terrains_8c.html#a8332bf006d59d08f5f2cdbd8e80f42f1" title="Teste les différentes fonctions du module TabTerrrains.">testTabTerrains</a>();
<a name="l00106"></a>00106 
<a name="l00107"></a>00107 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Structures de données</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Définitions de type</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Généré le Mardi Juin 4 2013 00:35:14 pour Exil par &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
